﻿<%@ Page Language="C#" MasterPageFile="~/Index.master" AutoEventWireup="true" CodeFile="oderCheck.aspx.cs" Inherits="oderCheck" Title="订单确定" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<link rel="Stylesheet" type="text/css" href="Style/StyleSheet.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="main" Runat="Server">
      <div style="width:500px; margin:0 auto">
         <table style="border:solid 1px #43a0db ; margin-top:20px" rules="all" width="500px"  cellpadding="0" cellspacing="0">
		    <tr>
		      <td style="text-align:center">
		        <asp:Label ID="lblUserId" runat="server" Visible ="false"></asp:Label>
                <asp:Label ID="lblUserName" runat="server" ForeColor="Red"></asp:Label>：您好<strong>，您本</strong>次的购物清单如下：
              </td>
		    </tr>
		    <tr>
		    <td>
               <asp:GridView  id="orderList" runat="server" Width="500px" 
                      AutoGenerateColumns="False" >
		            <Columns>		      
			            <asp:TemplateField HeaderText="编号">
				            <HeaderStyle Width="50px"></HeaderStyle>
				            <ItemTemplate>
					            <asp:Label id="BookId" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Book_Idint")%>'>
					            </asp:Label>
				            </ItemTemplate>
			            </asp:TemplateField>
			            <asp:BoundField DataField="Book_Namestr" HeaderText="商品名称" />			    
			            <asp:TemplateField HeaderText="单价">
				            <HeaderStyle Width="60px"></HeaderStyle>
				            <ItemTemplate>
					            ￥
					            <asp:Label id="Price" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Book_Price")%>' >
					            </asp:Label>
				            </ItemTemplate>
			            </asp:TemplateField>
			            <asp:TemplateField HeaderText="数量">
				            <HeaderStyle Width="70px"></HeaderStyle>
				            <ItemTemplate>
					            <asp:Label  id="Count" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Book_Count")%>' >
					            </asp:Label>
				            </ItemTemplate>
			            </asp:TemplateField>
			           
		            </Columns>
		            <PagerStyle HorizontalAlign="Left" ForeColor="#000066" BackColor="White" ></PagerStyle>
                </asp:GridView>         
                <strong>总计：</strong> ￥
                <asp:Label ID="sumPrice" runat="server" Font-Bold="True" ForeColor="Red" Width="54px"></asp:Label>
                </td>
		    </tr>
		    <tr>
		      <td>
		        <table width="100%" style="border:1px solid #43a0db " frame="hsides"  rules="all">
		          <tr>
                    <td colspan="2" style="color: #ffffff; background-color: #43a0db">
                            &nbsp;如果不是本人收货，请您更改以下信息：
                    </td>
                  </tr>
                  <tr>
                    <td >联系人：</td>
                    <td >
                        &nbsp;
                        <asp:TextBox ID="txtLinkMan" Width="150px" runat="server"></asp:TextBox><font face="宋体">*</font>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtLinkMan"
                            ErrorMessage="不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
                        <input id="hiUserId" runat="server" name="Hidden1" type="hidden" />
                    </td>
                  </tr>
                  <tr>
                    <td > E_mail：</td>
                    <td>
                        &nbsp;
                        <asp:TextBox ID="txtEmail" runat="server" Width="150px"></asp:TextBox><font face="宋体">*</font>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtEmail"
                            ErrorMessage="不能为空"></asp:RequiredFieldValidator>
                    </td>
                  </tr>
                  <tr>
                    <td  > 联系电话：</td>
                    <td >
                        &nbsp;
                        <asp:TextBox ID="txtPhone" runat="server" Width="150px"></asp:TextBox><font face="宋体">*</font>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtPhone"
                            ErrorMessage="不能为空"></asp:RequiredFieldValidator>
                    </td>
                  </tr>
                  <tr>
                    <td style="width:80px" >
                        邮政编码：</td>
                    <td >
                        &nbsp;
                        <asp:TextBox ID="txtPost" runat="server" Width="150px"></asp:TextBox><font face="宋体">*</font>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtPost"
                            ErrorMessage="不能为空"></asp:RequiredFieldValidator>
                    </td>
                  </tr>
                  <tr>
                    <td>送货地址：</td>
                    <td>
                        &nbsp;
                        <asp:TextBox ID="txtAddress" TextMode="MultiLine" runat="server" Width="300px" 
                            ></asp:TextBox><font face="宋体">*</font>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtAddress"
                            ErrorMessage="不能为空"></asp:RequiredFieldValidator>
                    </td>
                  </tr>
                  <tr>
                    <td >特别要求：</td>
                    <td>
                        &nbsp;
                        <asp:TextBox ID="txtRemark" runat="server" MaxLength="300" TextMode="MultiLine"
                            Width="300px" ></asp:TextBox>
                    </td>
                  </tr>
                  <tr>
                    <td colspan="2" style="color: #ffffff; background-color: #43a0db">
                            请注意选择以下信息：
                    </td>
                  </tr>
                  <tr>
                    <td  >
                        送货方式：</td>
                    <td>
                        &nbsp;
                        <asp:DropDownList ID="dropSMode" runat="server" >
                            <asp:ListItem Selected="True" Value="快递">快递</asp:ListItem>
                            <asp:ListItem Value="邮局配送">邮局配送</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                  </tr>
                  <tr>
                    <td  >
                        付款方式：</td>
                    <td>
                        &nbsp;
                        <asp:DropDownList ID="dropFMode" runat="server" >
                            <asp:ListItem Selected="True" Value="网上支付">网上支付</asp:ListItem>
                            <asp:ListItem Value="邮局汇款">邮局汇款</asp:ListItem>
                            <asp:ListItem Value="货到付款">货到付款</asp:ListItem>                                        
                        </asp:DropDownList>
                    </td>
                  </tr>                        
		    </table>
              </td>
		    </tr>
		    <tr>
		    <td style="color: #ff6666; text-align:center">
                <strong>
                如果您的所有信息无误并决定购买这些商品请提交订单！</strong></td>
		    </tr>
		    <tr>
		      <td align="center">
                <asp:Button ID="btnSure" runat="server" Text="提交订单" Width="117px" 
                      onclick="btnSure_Click" />
              </td>
		    </tr>
		    <tr>
		      <td>
                <asp:Label ID="lblError2" runat="server" ForeColor="Red" ></asp:Label>
              </td>
		    </tr>
		  </table>
      </div>	

</asp:Content>

